package com.athuahua.spzx.service;

import com.athuahua.spzx.entity.SysUser;
import com.athuahua.spzx.dto.system.LoginDto;
import com.athuahua.spzx.dto.system.SysUserDto;
import com.athuahua.spzx.vo.system.LoginVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author huahua
* @description 针对表【sys_user(用户表)】的数据库操作Service
* @createDate 2024-07-21 11:28:28
*/
public interface SysUserService extends IService<SysUser> {

    /**
     * 登录接口功能实现
     * @param loginDto
     * @return
     */
    public LoginVo login(LoginDto loginDto);

    /**
     * 根据token获取用户信息
     * @param
     * @return
     */
    SysUser getUserInfo();

    /**
     * 退出登录
     * @param
     */
    void logout();

    /**
     * 用户分页查询
     * @param page
     * @param size
     * @param sysUserDto
     * @return
     */
    IPage<SysUser> findByPage(int page, int size, SysUserDto sysUserDto);
}
